<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<link rel="stylesheet" href="//unpkg.com/layui@2.6.8/dist/css/layui.css">
	</head>
	<style>
	  
	</style>
	<body>
		
		<script src="https://lib.baomitu.com/jquery/3.0.0/jquery.js"></script>
			<script src="//unpkg.com/layui@2.6.8/dist/layui.js"></script>
		<div class="box">
			<form class="layui-form" action="javascript:void(0)">
				<div class="layui-form-item">
					<label class="layui-form-label">Token</label>
					<div class="layui-input-block">
						<input type="text" name="userAccount" lay-verify="required" placeholder="请输tojen" autocomplete="off" class="token layui-input">
					</div>
				</div>
				<div class="layui-form-item">
				  <div class="layui-input-block">
				    <button class="gettoken layui-btn" lay-filter="formDemo">获取</button>
				  </div>
				</div>
			</form>
		</div>

		<script src="https://lib.baomitu.com/jquery/3.0.0/jquery.js"></script>
		<script src="//unpkg.com/layui@2.6.8/dist/layui.js"></script>
		
		<script>
			
			let get=(token)=>{
				$.ajax({
					type:'get',
					url:'http://122.225.55.70:2666//accountUsers/getMyUser',
					contentType: "application/json;charset=utf-8",
					headers:{
						'authToken':token,
					},
					success(res){
						console.log(res)
					}
					
					
				})
			}
			
			$(".gettoken").click(()=>{
				get($(".token").val())
			})
			
		</script>
		
		
	</body>
</html>
